<template>
  <div id="app">
    <router-view />
    <div id="nav">
      <router-link to="/">首页</router-link>
      <router-link to="/list">分类</router-link>
      <router-link to="/shopcar">购物车</router-link>
      <router-link to="/my">个人中心</router-link>
    </div>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
#app {
  padding-bottom: 60px;
}

#nav {
  // padding: 30px;
  display: flex;
  height: 50px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;

  a {
    flex: 1;
    display: flex;
    border: 1px solid #ccc;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #2c3e50;
  }
  .router-link-exact-active {
    // color: #42b983;
    color: chocolate;
    background: rgb(165, 157, 157);
  }
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
